<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>登录</title>
    <!-- 引入JQuery -->
    <script src="js/jquery-3.4.1.min.js" th:src="@{/js/jquery-3.4.1.min.js}"></script>
    <!-- 引入BootStrap-->
    <link href="css/bootstrap/css/bootstrap.min.css" th:href="@{/css/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
    <script src="css/bootstrap/js/bootstrap.min.js" th:src="@{/css/bootstrap/js/bootstrap.min.js}"></script>
</head>
<h1>登录</h1>
<!--<form action="#" th:action="@{/checkUser}" th:object="${user}" method="post">-->
<!--    账号：<input type="text" th:field="*{user_name}" />-->
<!--    密码：<input type="text" th:field="*{user_passwd}" />-->
<!--    <input type="submit" />-->
<!--</form>-->
<body class="text-center">
    <form class="form-signin" action="#" th:action="@{/checkUser}" th:object="${user}" method="post">
        <h1 class="h3 mb-3 font-weight-normal">登录</h1>
        <label class="sr-only" >账号</label>
        <input type="text" class="form-control" placeholder="账号" required="" autofocus="" th:field="*{user_name}">
        <label class="sr-only" >密码</label>
        <input type="password" class="form-control" placeholder="密码" required="" th:field="*{user_passwd}" >
        <div class="checkbox mb-3">
            <label>
                <input type="checkbox" value="remember-me" th:text="记住我">
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
        <p class="mt-5 mb-3 text-muted">© 2017-2018</p>
        <!--Thymeleaf参数传递，使用括号（）-->
        <a class="btn btn-sm">中文</a>
        <a class="btn btn-sm">English</a>
    </form>
</body>
</html>
